package seg.tef4.whms.apis;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import seg.tef4.whms.domain.TInWarehouse;


public interface SparePartApi {
    @POST("/wms/part/get_product_line")
    public Call<ResponseBody> getProductLine(@Header("Authorization") String token);

    @POST("/wms/part/get_station")
    public Call<ResponseBody> getStation(@Header("Authorization") String token,@Query("line") String line);

    @GET("/wms/part/list")
    public Call<ResponseBody> list(@Header("Authorization") String token,@QueryMap Map<String, String> queryParams);

    @POST("/wms/part/get_part_material_num")
    public Call<ResponseBody> getPartByMaterialNo(@Header("Authorization") String token, @Query("materialNo") String materialNo);

    @POST("/wms/in")
    public Call<ResponseBody> add(@Header("Authorization") String token, @Body TInWarehouse tInWarehouse);
}
